package com.sskj.aikeeper.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.aikeeper.bean.ShareBean;
import com.sskj.aikeeper.hangqing.activity.ShareActivity;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;


/**
 * @author Hey
 * Create at  2019/07/02
 */
public class SharePresenter extends BasePresenter<ShareActivity> {

    public void getShareInfo() {
        httpService.getShareInfo()
                .tag(this)
                .execute(new JsonCallBack<HttpData<ShareBean>>(this) {
                    @Override
                    public void onSuccess(Response<HttpData<ShareBean>> response) {
                        mView.getShareInfoOK(response.body().getData());
                    }
                });
    }
}
